
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.HashMap;

/**
 * 
 * @author Bua_Pietro
 *
 */
public class PriceListImpl  extends UnicastRemoteObject implements PriceList
{
	private HashMap<String, String> myPriceList;
	
	/**
	 * 
	 * @throws RemoteException
	 */
	public PriceListImpl() throws RemoteException
	{
		myPriceList = new HashMap<String, String>();
	}
	
	/**
	 * 
	 * @param key
	 * @param value
	 */
	public void addPrice( String key, String value )
	{
		myPriceList.put(key, value);
	}
	
	/**
	 * 
	 */
	@Override
	public PriceListImpl getPriceList() throws RemoteException
	{
		return this;
	}
}
